<%@page import="java.util.List"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<!DOCTYPE html>
<%@ include file="/WEB-INF/view-system/include/contentTaglib.jsp"%>

<html>
<head>
<title>导出对公正常还款</title>
	<script src="${ctxStaticSystem }/js/dataexport/exportRepayRecord.js" type="text/javascript" ></script>
	<link href="${ctx}/static-system/css/staff/staff.css" rel="stylesheet" type="text/css"/>
	 <link href="${ctxStaticSystem }/css/roleManage/roleManage.css" rel="stylesheet" type="text/css"/>
</head> 
<body>
<tags:dataSet id="exportRepayRecord">
	<tags:dataField name="loanNo" display="贷款编号"  sort="false"  cssClass="table-header-center" width="25%"/>
	<tags:dataField name="customerName" display="客户姓名"  sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="customerIdcard" display="身份证号码" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="mthRepayDate" display="还款日期" visiable="false" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="tranTime" display="交易时间" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="doRepayNum" display="还款期数" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="tranAmt" display="还款金额" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="customerBank" display="客户账户" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="chanName" display="渠道" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="customerTel" display="手机号" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="pubrepayStatus" display="处理状态" sort="false" visiable="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="pubrepayStatusZW" display="处理状态" sort="false" width="25%" cssClass="table-header-center"/>
	<tags:dataField name="updateTime" display="更新时间 " sort="false" width="25%" cssClass="table-header-center"/>
</tags:dataSet>

<tags:ajax id="queryRepayRecordListAjax" url="${ctx}/sms/queryRepayRecord/queryList" type="post"
	contentType="application/x-www-form-urlencoded" formQuery="#repayRecordQueryFrm" formSubmit="true"
	autoSend="false"/>
<tags:ajax id="exportExcelAjax" url="${ctx}/sms/queryRepayRecord/queryExportExcel" type="post"
 	contentType="application/x-www-form-urlencoded" formQuery="#repayRecordQueryFrm" formSubmit="true" 
    autoSend="false" onSuccess="onExportSucc"/>
<tags:ajax id="exportExcelAllAjax" url="${ctx}/sms/queryRepayRecord/queryExportExcel?pubrepayStatus=01&exportType=all" type="get"
 	contentType="application/x-www-form-urlencoded" autoSend="false" onSuccess="onExportAllSucc"/>
	
<tags:boards>
	<tags:board boardTitle="对公正常还款" width="100%">
			<form id="repayRecordQueryFrm" class='m-cust'>
					<div class="row form-group">
				  		<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
				  				<label>贷款编号：</label>
				  			</div>
							<div class="col-md-8 col-sm-8">
								<input name="loanNo" class="form-control" id="loanNo" type="text">
							</div>
						</div>
				  		<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
				  				<label>客户姓名：</label>
				  			</div>
							<div class="col-md-8 col-sm-8">
								<input name="customerName" class="form-control" id="customerName" type="text">
							</div>
						</div>
				  		<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
				  				<label>身份证号码：</label>
				  			</div>
							<div class="col-md-8 col-sm-8">
								<input name="customerIdcard" class="form-control" id="customerIdcard" type="text">
							</div>
						</div>
					</div>
					<div class="row form-group">
						<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
							 	<label >开始时间：</label>
							 </div>
							<div class="col-md-8 col-sm-8">
								<tags:datepicker dateFormat="yyyy-MM-dd" name="startDate" dateType="date" id="startDate"/>
				  			</div>
			  			</div>
				  		<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
							 	<label >结束时间：</label>
							 </div>
							<div class="col-md-8 col-sm-8">
								<tags:datepicker dateFormat="yyyy-MM-dd" name="endDate" dateType="date" id="endDate"/>
				  			</div>
				  		</div>
				  		<div class="col-md-4">
				  			<div class="col-md-4 col-sm-4">
				  				<label>处理状态：</label>
				  			</div>
							<div class="col-md-8 col-sm-8">
								<select name="pubrepayStatus" class="form-control" id="pubrepayStatus">
								 <option value="">请选择</option>
								 <option value="01">已申请</option>
								 <option value="06">已提交</option>
								 <option value="02">成功</option>
								 <option value="03">失败</option>
								 <option value="10">失效</option>
								 <option value="08">资产办理</option>
								 <option value="13">取消</option>
<!-- 								 <option value="09">运营处理</option> -->
								</select>
							</div>
						</div>
					
					</div> 
					<div class="form-group">
					   	<button class="btn btn-warning m-btn" type="button" onclick="query()">查询</button>
					   	<button class="btn btn-default m-btn" type="reset">重置</button>
					  	<button class="btn btn-info m-btn" type="button" onclick="exportExcel()">导出excel</button>
<!-- 					  	<button class="btn " type="button" onclick="onExportAllSucc()">全部导出</button> -->
<%-- 					  	<a class="btn " href="${ctx}/sms/queryHandleSettle/exportAll">全部导出</a> --%>
					</div>
					<div class="row form-group">
						<div data-tag="结清证明" class="form-horizontal">
							<tags:datatable id="RepayRecordTable" storage="false"  
								ajax="queryRepayRecordListAjax" dataSet="exportRepayRecord" 
								pagination="RepayRecordPagination" striped="true" 
								cutLine="true" />
							<tags:pagination pageSize="10" id="RepayRecordPagination" 
							pageChoice="10" datatable="RepayRecordTable"/>	
						</div>
					</div>
			</form>	 
	</tags:board>
</tags:boards>
</body>
	
</html>